Nevron Open Vision Documentation
Nevron.Nov.UI Namespace / NContinuousMediaExporter<TContent> Class / SaveAsImage Method / SaveAsImage(NWindow,NRectangle,Double,String) Method
The extension of the default file type. It is used to set the SelectedFilter property of the save file dialog shown by this method.


In This Topic
    SaveAsImage(NWindow,NRectangle,Double,String) Method
    In This Topic
    Shows a file dialog for selecting an image file and exports the given bounds of the document to an image with the specified DPI. The format of the image is determined by the type of image selected by the user.
    Syntax
    'Declaration
     
    
    Public Overloads Overridable Sub SaveAsImage( _
       ByVal ownerWindow As NWindow, _
       ByVal bounds As NRectangle, _
       ByVal dpi As System.Double, _
       ByVal selectedFileExtension As System.String _
    ) 
    'Usage
     
    
    Dim instance As NContinuousMediaExporter(Of TContent)
    Dim ownerWindow As NWindow
    Dim bounds As NRectangle
    Dim dpi As System.Double
    Dim selectedFileExtension As System.String
     
    instance.SaveAsImage(ownerWindow, bounds, dpi, selectedFileExtension)
    public virtual void SaveAsImage( 
       NWindow ownerWindow,
       NRectangle bounds,
       System.double dpi,
       System.string selectedFileExtension
    )

    Parameters

    ownerWindow
    bounds
    dpi
    selectedFileExtension
    The extension of the default file type. It is used to set the SelectedFilter property of the save file dialog shown by this method.
    Requirements

    Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

    See Also